package com.xma.springcloud.alibaba.service;

import com.xma.springcloud.common.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @Author: arthur
 * @License: (C) Copyright 2020-2028, xxx Corporation Limited.
 * @Contact: 413911174@qq.com
 * @Date: 2020/7/6 22:43
 * @Version: 1.0
 * @Description: 账户服务
 */
@FeignClient(value = "seata-account-service" )
public interface TtAccountService {
    @PostMapping(value = "/account/decrease")
    ResponseResult decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
